package com.magina.common.model;


import lombok.Getter;
import lombok.Setter;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;


@XmlRootElement(name="userInfo")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(propOrder={"userName", "age"})
@Getter
@Setter
public class UserInfo  {

    private String userName;
    private int age;

//
//    private HashMap userMap;
//    private User[] userArray;
public UserInfo(String userName, int age) {
    super();
    this.userName = userName;
    this.age = age;
}

    public UserInfo() {
        super();
    }

    @Override
    public String toString() {
        return "UserInfo{" +
                "userName='" + userName + '\'' +
                ", age=" + age +
                '}';
    }
}